<!--
 * @Description: 
 * @Version: 2.0
 * @Author: Xing
 * @Date: 2021-02-06 21:34:03
 * @LastEditors: Xing
 * @LastEditTime: 2021-02-06 21:36:51
-->
<template>
  <img :src="result && result.message" alt="" srcset="" />
</template>

<script lang="ts">
import axios from 'axios';
import { defineComponent } from 'vue';

export default defineComponent({
  async setup() {
    const rawData = await axios.get('https://dog.ceo/api/breeds/image/random');
    return {
      result: rawData.data,
    };
  },
});
</script>

<style scoped></style>
